package com.dianxin.farm.request.sms;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

@Data
@ApiModel("短信验证码校验表单")
public class CheckCodeRequest {

    @ApiModelProperty("手机号码")
    @NotBlank(message = "请填写手机号")
    @NotNull(message = "请填写手机号")
    private String phone;

    private Integer id;
    @ApiModelProperty("验证码")
    private String code;

}
